<template>
  <!--    <router-view/>-->
  <router-view/>
</template>

<script setup lang="ts">
import {onMounted, ref} from 'vue';
import {getWordList} from "@/utils/db";

const route = ref('')
const enterAction = ref({})

onMounted(() => {
  // 进入插件时触发
  /*  window.utools.onPluginEnter((action) => {
      console.log(JSON.stringify(action))
      route.value = action.code
      enterAction.value = action
      // { code, type, payload, option, from }



      // app版本
      // const currentVerson = window.services.getAppVerson()
      // 数据库版本
      // const previousVerson = window.services.wordModel.getAppVersionFromDb()

      // 添加单词
      if (action.code === 'add vocabulary') {
        // addWord(action.payload)

      }
      // 复习单词

      if (action.code === 'review') {
        getWordList()
      }
    })*/


  // 退出插件时触发
  /*  window.utools.onPluginOut((isKill) => {
      route.value = ''
    })*/


});


</script>


<style lang="scss">
@use '@/assets/styles/reset.scss';
@use '@/assets/styles/common.scss';

@use '@/assets/styles/card-item.scss';
@use '@/assets/styles/index.scss';
@use '@/assets/styles/letter.scss';
@use '@/assets/styles/list-item.scss';
@import '@/assets/icons/iconfont.css';
@import '@/assets/styles/iconfont1.scss';
</style>
